package com.zxmr.webclient.action.dto;

public class UserLogin extends DTOBase{

	String name;
	String password;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	@Override
	public String validate() {
		if(this.isEmptyWithTrim(name)||this.isEmptyWithTrim(password))
			return "name and password can not be empty";
		return "success";
	}
	
	
}
